﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class TaskNpc:Npc
    {
        private string speakinfo;
        public string Speakinfo
        {
            get
            { return this.speakinfo; }
            set { this.speakinfo = value; }
        }
        public TaskNpc(string name,NPCtype type,string speakinfo):base(name,type)
        {
            this.speakinfo = speakinfo;
        }
        public override void speak()
        {
            Console.WriteLine("亲爱的勇士，can you help me ?NPC:{0},任务:{1}", this.Name, this.speakinfo);
        }
    }
}
